package com.xmb.wechat.bean;

import java.io.Serializable;
import java.util.Date;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import io.objectbox.relation.ToOne;

@Entity
public class WechatRedPkgReceiveBean implements Serializable {
    @Id
    private long id;
    //红包领取者
    private ToOne<WechatContactBean> receiver;
    //领取时间
    private Date receiveTime;
    //领取金额
    private double receiveMoney;

    @Override
    public String toString() {
        return "WechatRedPkgReceiveBean{" +
                "id=" + id +
                ", receiver=" + receiver +
                ", receiveTime=" + receiveTime +
                ", receiveMoney=" + receiveMoney +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public ToOne<WechatContactBean> getReceiver() {
        return receiver;
    }

    public void setReceiver(ToOne<WechatContactBean> receiver) {
        this.receiver = receiver;
    }

    public Date getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Date receiveTime) {
        this.receiveTime = receiveTime;
    }

    public double getReceiveMoney() {
        return receiveMoney;
    }

    public void setReceiveMoney(double receiveMoney) {
        this.receiveMoney = receiveMoney;
    }
}
